package com.hibuy.pc.mapper.shiro;

import com.hibuy.pc.model.shiro.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.scheduling.annotation.Async;

import java.util.List;

/**
 * Created by admin on 2017/12/28.
 */
@Mapper
public interface UserMapper {

    @Select("select * from sys_user")
    List<User> findUserList();

    @Insert("INSERT INTO sys_user (nickname,email,pswd,create_time,status) VALUES (#{nickname},#{email},#{pswd},NOW(),#{status})")
    User addUser(User user);
}
